package com.snowfeel.sfmall.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.snowfeel.sfmall.sys.model.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * <p>
 * 角色信息 Mapper 接口
 * </p>
 *
 * @author Jerry
 * @since 2020-11-27
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {
    Integer getMaximumDataScope(@Param("roles") Set<String> roles);

    Set<String> rolePermissionByUserId(@Param("userId") Long userId);
}
